package com.fastCms.manager.bim.controller.api;


import com.fastCms.business.bim.manage.BimManageService;
import com.fastCms.business.frame.response.ApiResponse;
import com.fastCms.business.frame.response.ResponseUtil;
import com.fastCms.manager.frame.annotation.UserAccess;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 商品 前端控制器
 * </p>
 *
 * @author liusq
 * @since 2021-03-05
 */
@RestController
@RequestMapping("api/bim")
@Api(value = "ApiBimController", tags = "前端-建模相关接口")
@UserAccess
public class ApiBimController {

    @Autowired
    private BimManageService bimManageServiceImpl;

    @ApiOperation(value = "获取模型view-token", notes = "")
    @GetMapping("/getViewToken")
    public ApiResponse<String> getViewToken() {
        String viewToken = bimManageServiceImpl.getViewToken();
        return ResponseUtil.success(viewToken);
    }

}
